#include "State_Load_Game.h"

LoadGame* LoadGame::init = 0;

void LoadGame::Enter()
{
	cout << "Load a game from here. Initialize first\n";
	choice = '0';
}

void LoadGame::Execute(Game* g)
{
	cout << "This is where all the loading happens\n";
	cout << "1. Start Loaded Game\n";
	cout << "Make a choice: ";
	cin >> choice;
	switch(choice)
	{
	case '1':
		{
			cout << "Game loaded. Starting campaign\n";
			g->changeState(Campaign::Instance());
		}
		break;
	default:
		{
			cout << "That is not a choice\n";
		}
		break;
	}
}

void LoadGame::Exit()
{
	cout << "Exiting State_Load_Game\n";
}

LoadGame* LoadGame::Instance()
{
	if(init == 0)
	{
		init = new LoadGame();
	}
	return init;
}